
package object;

/**
 * 
 * @author wangweida
 * 2007-12-3
 */

public class Module{
	private int ModuleID;
	private String ModuleName;
	private int Type;
	private int ProjectID;
	private int ModuleGrade;
	private int ParentID;
	private int ModuleOwnerID;
	private int DisplayOrder;
	private int AddedByID;
	private String AddDate;
	private byte IsDropped;
	private int LastEditedByID;
	private String LastDate;
	
	private Module(){
		
	}
	
	private Module(int ModuleID,String ModuleName,int Type,int ProjectID,int ModuleGrade,int ParentID,int ModuleOwnerID,int DisplayOrder,int AddedByID,String AddDate,byte IsDropped,int LastEditedByID,String LastDate){
		this.ModuleID=ModuleID;
		this.ModuleName=ModuleName;
		this.Type=Type;
		this.ProjectID=ProjectID;
		this.ModuleGrade=ModuleGrade;
		this.ParentID=ParentID;
		this.ModuleOwnerID=ModuleOwnerID;
		this.DisplayOrder=DisplayOrder;
		this.AddedByID=AddedByID;
		this.AddDate=AddDate;
		this.LastDate=LastDate;
		this.LastEditedByID=LastEditedByID;
		this.IsDropped=IsDropped;
	}
	
	public static Module getInstance()
	{
		return new Module();
	}
	
	public static Module getInstance(int ModuleID,String ModuleName,int Type,int ProjectID,int ModuleGrade,int ParentID,int ModuleOwnerID,int DisplayOrder,int AddedByID,String AddDate,byte IsDropped,int LastEditedByID,String LastDate)
	{
		return new Module(ModuleID,ModuleName,Type,ProjectID,ModuleGrade,ParentID,ModuleOwnerID,DisplayOrder,AddedByID,AddDate,IsDropped,LastEditedByID,LastDate);
	}
	
	public void setModuleID(int ModuleID){
		this.ModuleID=ModuleID;
	}
	public int getModuleID(){
		return this.ModuleID;
	}
	
	public void setModuleName(String ModuleName){
		this.ModuleName=ModuleName;
	}
	public String getModuleName(){
		return this.ModuleName;
	}
	
	public void setProjectID(int ProjectID){
		this.ProjectID=ProjectID;
	}
	public int getProjectID(){
		return this.ProjectID;
	}
	
	public void setType(int Type){
		this.Type=Type;
	}
	public int getType(){
		return this.Type;
	}
	
	public void setModuleOwnerID(int ModuleOwnerID){
		this.ModuleOwnerID=ModuleOwnerID;
	}
	public int getModuleOwnerID(){
		return this.ModuleOwnerID;
	}
	
	public void setParentID(int ParentID){
		this.ParentID=ParentID;
	}
	public int getParentID(){
		return this.ParentID;
	}
	
	public void setDisplayOrder(int DisplayOrder){
		this.DisplayOrder=DisplayOrder;
	}
	public int getDisplayOrder(){
		return this.DisplayOrder;
	}
	
	public void setModuleGrade(int ModuleGrade){
		this.ModuleGrade=ModuleGrade;
	}
	public int getModuleGrade(){
		return this.ModuleGrade;
	}
	
	public void setAddedByID(int AddedByID){
		this.AddedByID=AddedByID;
	}
	public int getAddedByID(){
		return this.AddedByID;
	}
	
	public void setAddDate(String AddDate){
		this.AddDate=AddDate;
	}
	public String getAddDate(){
		return this.AddDate;
	}
	
	public void setIsDropped(byte IsDropped){
		this.IsDropped=IsDropped;
	}
	public byte getIsDropped(){
		return this.IsDropped;
	}
	
	public void setLastDate(String LastDate){
		this.LastDate=LastDate;
	}
	public String getLastDate(){
		return this.LastDate;
	}
	
	public void setLastEditedByID(int LastEditedByID){
		this.LastEditedByID=LastEditedByID;
	}
	public int getLastEditedByID(){
		return this.LastEditedByID;
	}
}